import Vue from 'vue';
import Router from 'vue-router';
import Home from '@/components/Home';
import FoodList from '@/components/FoodList';
import FoodMsg from '@/components/FoodMsg';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/', // 首页
      name: 'Home',
      component: Home,
    },
    {
      path: '/food_list', // 列表页
      name: 'FoodList',
      component: FoodList,
    },
    {
      path: '/food_msg', // 列表页
      name: 'FoodMsg',
      component: FoodMsg,
    },
  ],
});
